package cn.bocai.pc.service.impl;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.bocai.pc.dao.BcAdminMapper;
import cn.bocai.pc.model.BcAdmin;
import cn.bocai.pc.service.BcAdminService;
@Service
public class BcAdminServiceImpl implements BcAdminService{

	@Autowired
	private  BcAdminMapper baUserDao;
	
	//用户登入的时候查询用户名和密码是否匹配
	public BcAdmin selectLogin(BcAdmin record) {
		BcAdmin selectLogin = baUserDao.selectLogin(record);
		return selectLogin;
	}

	//用户登入以后修改密码 
	public int updateUserPaw(Map<String, Object> par) {
		int updateUserPaw = baUserDao.updateUserPaw(par);
		return updateUserPaw;
	}

	public int deleteByPrimaryKey(String userId) {
		// TODO Auto-generated method stub
		return 0;
	}

	public int insert(BcAdmin record) {
		// TODO Auto-generated method stub
		return 0;
	}

	public int insertSelective(BcAdmin record) {
		// TODO Auto-generated method stub
		return 0;
	}

	public BcAdmin selectByPrimaryKey(String userId) {
		// TODO Auto-generated method stub
		return null;
	}

	public int updateByPrimaryKeySelective(BcAdmin record) {
		// TODO Auto-generated method stub
		return 0;
	}

	public int updateByPrimaryKey(BcAdmin record) {
		// TODO Auto-generated method stub
		return 0;
	}

	
}
